<template>
	<view class="content">
		<view class="topNav">
			<view class="topNav" style="margin:0 -32rpx ;padding32rpx ;height: 90rpx;c">
				<div class="cuIcon-close icon left" @click="back" style='' style='font-weight: 600;'></div>
				<div class="center" style=''></div>
			</view>
		</view>
		<div style='height: 90rpx;'></div>
		<div style='height: calc(100vh - 90rpx);width:100vw' >
			<iframe :src='viewerUrl' width='100%' height='100%' frameborder='1'>
			            </iframe>
						<!-- <web-view :src="viewerUrl" :progress="false"></web-view> -->
		</div>
		
		<!-- <web-view :src="allUrl"></web-view> -->
		<!-- <view class="flexBtn">
			<view class="cuIcon-back icon"  @click="back"></view>
			<view class="cuIcon-right icon" style="color: #F8F8FA;"></view>
		</view> -->
	</view>
</template>

<script>
export default {
	data() {
		return {
			viewerUrl: '',
			backUrl:'',
		};
	},
	onLoad(e) {
	},
	onShow() {
		this.viewerUrl = uni.getStorageSync("myUrl")
		this.backUrl= uni.getStorageSync("backUrl")
		// this.viewerUrl='http://view.xdocin.com/xdoc?_xdoc='+"http://recharge.lyuncai8888.com/static/img/test.ppt"
	},
	methods: {
		back() {
			uni.navigateBack()
			// uni.navigateTo({
			// 	url: this.backUrl
			// });
		}
	}
};
</script>

<style lang="less" scoped>
	.content{
		min-height: 100vh;
		background-color: #eee7e5;
		.topNav{
			background: #fffaf0;
			color: #000000;
		}
	}
	
	
</style>
